import request from '@/utils/request';

export async function fetchInvProject(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busInvoiceProject/getStoreInvoiceSetting', {
    method: 'POST',
    data: params,
  });
}

export async function invProjectSearch(params = {}) {
  return request('/Amaidan-Merchants-Web/merchants/busInvoiceProject/getInvoiceTaxCodeList', {
    method: 'POST',
    data: params,
  });
}

export async function fetchInvList(params = {}) {
  return request('/Amaidan-Users-Web/user/invoice/getUserInvoiceDetailPage', {
    method: 'POST',
    data: params,
  });
}

export async function fetchFaultinessList(params = {}) {
  return request('/Amaidan-Users-Web/user/invoice/getUserUnfinishedInvoiceDetailPage', {
    method: 'POST',
    data: params,
  });
}
